-- GENERATED SPELL FOR [Iron Behemoth] --


function spell0_30064(pUnit, Event) --@Obliterate,Self--
pUnit:FullCastSpellOnTarget(56061,pUnit)
pUnit:RegisterEvent('Sorts_30064', 644, 1)
end

function spell1_30064(pUnit, Event) --@Thunderous Stomp,n/a--
pUnit:FullCastSpellOnTarget(56062,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30064', 0, 1)
end

function Sorts_30064(pUnit, Event)
local choix_sorts_30064 = math.random(0, 1)
if choix_sorts_30064 == 0 then
pUnit:RegisterEvent('spell0_30064', 1, 1)
end
if choix_sorts_30064 == 1 then
pUnit:RegisterEvent('spell1_30064', 1, 1)
end
end

function mob30064_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30064', math.random(1500, 3000), 1)
end

function mob30064_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30064_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30064_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30064, 1, 'mob30064_Action')
RegisterUnitEvent(30064, 2, 'mob30064_Leave')
RegisterUnitEvent(30064, 3, 'mob30064_Kill')
RegisterUnitEvent(30064, 4, 'mob30064_Die')
